import serial

def serial_close(ser:serial.Serial):
    try:
        ser.close()
        return not ser.isOpen()
    except Exception as e:
        return str(False)
